package com.cruzr.opengles;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.cruzr.opengles.light.LightActivity;
import com.cruzr.opengles.map.GLMapActivity;
import com.cruzr.opengles.triangle.TriangleActivity;

public class MainActivity extends AppCompatActivity  {

    private Context mContext;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        mContext = getApplicationContext();
    }

    public void onTriangleClick(View view) {
        startActivity(new Intent(mContext, TriangleActivity.class));
    }

    public void onMapClick(View view) {
        startActivity(new Intent(mContext, GLMapActivity.class));
    }

    public void onLightClick(View view) {
        startActivity(new Intent(mContext, LightActivity.class));
    }
}
